import { Component, OnInit } from "@angular/core";
import { Router } from '@angular/router';
import { MessageService } from 'src/app/core/service/message.service';


@Component({
    templateUrl: "./redTeam.html",
    styleUrls: ["./redTeam.scss"]
})
export class RedTeamComponent implements OnInit {
    pdfSrc='http://139.196.218.92:4224/assets/img/logo/645-2006.pdf';
    isShowList=true;
    isShowWz=false;
    selectedTags = [];
    sharchTags = ['全部 ', '国家标准', '行业标准', '地方标准', '国际标准', '国外标准', '示范试点', '重点工程', '技术委员会'];
    sharchTags3 = [' 全部', '工业信息化部 ', '公安部', '国家密码管理局'];
    sharchTags4 = ['全部   ', '近一个月', '近三个月', '近半年', '近一年', '近两年', '近三年'];
    sharchTags5 = ['全部', '现行', '有更新版', '废止'];
    sharchTags2 = ['安全防范工程系统', '入侵报警类', '视频监控类', '道路交通类', '出入口控制类', '反恐防爆安检类', '生物识别类', '侦查防护类', '电磁兼容类', '电气安全类', '实体防护类',
        '警用装备类',
        '可靠性试验类',
        '信息安全类',
        '公安专用类',
        '软件类',
        '智能联网类',
        '信息系统'
    ];
    selItem ;
    marks: any = {
        0: '发布于2014/9/9',
        50: '实施于2014/12/1',
        100: {
          style: {
            color: '#f50'
          },
          label: '<strong>废止</strong>'
        }
      };
    page = { pageNo: 1 };
    list:any;
    sharchTagsUrl = ['/member/center/home/index', '/member/center/home/myProject', 'member/center/home/bzwx', '平台服务'];
    indexList= [{
        code:'GA 1002-2012', 
        name:'剧毒化学品、放射源存放场所',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2012/6/29',
        ssTime:'2012/9/1',
        bah:'39108-2013'
    },{
        code:'GM/T 0054-2018', 
        name:'信息系统密码应用',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/2/8',
        ssTime:'2018/2/8',
        bah:'61709-2018'
    },{
        code:'GB/T 35789.1-2017', 
        name:'机动车电子标识',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/12/29',
        ssTime:'2018/7/1',
        bah:'62872-2018'
    },{
        code:'GB/T 36951-2018', 
        name:'物联网感知终端应用',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/12/28',
        ssTime:'2019/7/1',
        bah:'62874-2018'
    },{
        code:'GA/T 1399.1-2017', 
        name:'公安视频图像分析系统',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/5/31',
        ssTime:'2017/5/31',
        bah:'--'
    },{
        code:'GA/T 1466.1-2018', 
        name:'智能手机型移动警务终端',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/3/28',
        ssTime:'2018/3/28',
        bah:'66117-2019'
    },{
        code:'GA/T 1354-2018', 
        name:'视频安防监控车载数字录像设备',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/2/23',
        ssTime:'2018/2/23',
        bah:'66100-2019'
    },{
        code:'GB/T 20276-2016', 
        name:'具有中央处理器的IC卡嵌入式软件',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2016/8/29',
        ssTime:'2017/3/1',
        bah:'49243-2015'
    },{
        code:'GBT 37845-2019', 
        name:'居家安防智能管理系统',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2019/8/30',
        ssTime:'2020/3/1',
        bah:'--'
    },{
        code:'GB/T 2423.7-2018', 
        name:'电工电子产品（Ec）',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/12/28',
        ssTime:'2019/7/1',
        bah:'--'
    },{
        code:'GB 12899－2018', 
        name:'手持式金属探测器',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/11/19',
        ssTime:'2019/12/1',
        bah:'--'
    },{
        code:'GA 423-2015', 
        name:'警用防弹盾牌',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2015/11/23',
        ssTime:'2016/1/1',
        bah:'GA 423-2003'
    },{
        code:'GA/T 1093-2013', 
        name:'出入口控制人脸识别系统',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2013/12/16',
        ssTime:'2014/1/1',
        bah:'44752-2014'
    },{
        code:'GA 576-2018', 
        name:'防尾随联动互锁安全门',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/9/10',
        ssTime:'2018/9/10',
        bah:'66276-2019'
    },{
        code:'GB 21976.7-2012', 
        name:'过滤式消防自救呼吸器',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2012/11/5',
        ssTime:'2013/6/1',
        bah:'--'
    },{
        code:'GB/T 4208-2017', 
        name:'电工电子产品外壳',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/7/31',
        ssTime:'2018/2/1',
        bah:'--'
    },{
        code:'GB/T 17626.2-2018', 
        name:'静电放电抗扰度',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/6/7',
        ssTime:'2019/1/1',
        bah:'--'
    },{
        code:'GA 166-2006', 
        name:'防盗保险箱',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2006/2/10',
        ssTime:'2006/5/1',
        bah:'19614-2007'
    },{
        code:'GA 1025-2012', 
        name:'消防产品安全',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2012/12/23',
        ssTime:'2012/12/23',
        bah:'39118-2013'
    },{
        code:'GB/T 21050-2019', 
        name:'信息安全技术 网络交换机安全技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2019/8/30',
        ssTime:'2020/3/1',
        bah:'--'
    }]
    aqList= [{
        code:'GA/T 645-2014', 
        name:'视频安防监控系统变速球型摄像机',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2014/9/9',
        ssTime:'2014/12/1',
        bah:'49269-2015'
    },{
        code:'GA/T 1399.1-2017', 
        name:'公安视频图像分析系统第1部分：通用技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/5/31',
        ssTime:'2017/5/31',
        bah:'62871-2018'
    },{
        code:'GA/T 1399.2-2017', 
        name:'公安视频图像分析系统第2部分：视频图像内容分析及描述技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/5/31',
        ssTime:'2017/5/31',
        bah:'62872-2018'
    },{
        code:'GA/T 1400.1-2017', 
        name:'公安视频图像信息应用系统第1部分：通用技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/5/31',
        ssTime:'2017/5/31',
        bah:'62874-2018'
    },{
        code:'GA/T 1400.2-2017', 
        name:'公安视频图像信息应用系统第2部分：应用平台技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/5/31',
        ssTime:'2017/5/31',
        bah:'62875-2018'
    },{
        code:'GA/T 1400.3-2017', 
        name:'公安视频图像信息应用系统第3部分：数据库技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/5/31',
        ssTime:'2017/5/31',
        bah:'62876-2018'
    },{
        code:'GA/T 1400.4-2017', 
        name:'公安视频图像信息应用系统第4部分：接口协议要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/5/31',
        ssTime:'2017/5/31',
        bah:'62877-2018'
    },{
        code:'GA/T 1154.1-2014', 
        name:'视频图像分析仪第1部分：通用技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2014/4/18',
        ssTime:'2014/8/1',
        bah:'49243-2015'
    },{
        code:'GA/T 1154.2-2014', 
        name:'视频图像分析仪第2部分：视频图像摘要技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2014/4/18',
        ssTime:'2014/8/1',
        bah:'49244-2015'
    },{
        code:'GB/T 19259-2013', 
        name:'视频投影器通用技术条件',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2003/7/25',
        ssTime:'2004/1/1',
        bah:'--'
    },{
        code:'SJ/T 11340-2015', 
        name:'前投影机通用规范',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2015/4/30',
        ssTime:'2015/10/1',
        bah:'50595-2015'
    },{
        code:'SJ/T 11346-2015', 
        name:'电子投影机测量方法',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2015/10/10',
        ssTime:'2016/4/1',
        bah:'52000-2015'
    },{
        code:'YD/T 1528-2016', 
        name:'光纤收发器技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2016/7/11',
        ssTime:'2016/10/1',
        bah:'63395-2018'
    },{
        code:'GB/T 15412-2017', 
        name:'应用电视摄像机云台通用规范',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2017/11/1',
        ssTime:'2018/5/1',
        bah:'--'
    },{
        code:'GA/T 1127-2013', 
        name:'安全防范视频监控摄像机通用技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2013/12/20',
        ssTime:'2014/1/1',
        bah:'44753-2014'
    },{
        code:'GA/T 1128-2013', 
        name:'安全防范视频监控高清晰度摄像机测量方法',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2013/12/20',
        ssTime:'2014/1/1',
        bah:'44754-2014'
    },{
        code:'GA/T 1178-2014', 
        name:'安全防范系统光端机技术要求',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2014/8/12',
        ssTime:'2014/8/12',
        bah:'49265-2015'
    },{
        code:'GA/T 1355-2018', 
        name:'国家标准GB/T28181-2016符合性测试规范',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/2/23',
        ssTime:'2018/2/23',
        bah:'66098-2019'
    },{
        code:'GA/T 1297-2016', 
        name:'安防线缆',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2016/7/8',
        ssTime:'2016/8/1',
        bah:'57558-2017'
    },{
        code:'GA/T 1351-2018', 
        name:'安防线缆接插件',
        hy:'认证认可',
        zt:'现行',
        pzTime:'2018/2/25',
        ssTime:'2018/2/25',
        bah:'66101-2019'
    }]
    current = 1;
    isVisible=true;
    constructor(
        private message: MessageService,
        private router: Router,
    ) { }

    ngOnInit() {
        this.message.setBreadcrumb({
            breadcrumbs: [
                { name: '标准文献' }
            ]
        });
        this.list = this.indexList
        this.selItem = this.list[0];
    }
    handleChange(checked: boolean, tag: string, index: string) {
        if (checked) {
            this.selectedTags[0] = tag;
            if(this.selectedTags[0] == '安全防范工程系统'){
                this.isShowList=true;
                this.list = this.aqList;
                this.isShowWz=true;
            }else{
                this.list = this.indexList;
                this.isShowWz=false;
                this.isShowList=true;
            }
            // this.sharchData.vulnerabilityTypeId = index;
            // this.router.navigateByUrl(this.sharchTagsUrl[index]);
        } else {
            // this.selectedTags = this.selectedTags.filter(t => t !== tag);
            // this.sharchData.vulnerabilityTypeId = '';
        }
    }
    onItemChecked(item) {
        if(item == this.list[0] && item.name == '视频安防监控系统变速球型摄像机' ){
            this.isShowList = false
        }
    }
    isShowMsgWindow=false;
    colseWindow(){
        this.isShowMsgWindow = false;
    }
}
